package cqrtplm.entity;

import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import cqrtplm.constant.RTTableTypeConstant;
import lombok.Data;

import java.math.BigInteger;;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "RT_CFG_CUSTOMER_NODE_INFO_LINK")
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_CUSTOMER_NODE_LINK_INFO
)
public class RtCustomerNodeInfoLinkDO extends CTyEntityBaseDO {

    @Id
    @Column(name = "OID", nullable = false)
    private BigInteger oid;

    @TyOtype(
            name = RTTableTypeConstant.TYPE_CUSTOMER_NODE_LINK_INFO
    )
    @Column(name = "OTYPE", length = 255)
    private String otype=RTTableTypeConstant.TYPE_CUSTOMER_NODE_LINK_INFO;

    @Column(name = "CUSTOMER_ID", nullable = false)
    private BigInteger customerId;

    @Column(name = "DOC_ID", nullable = false)
    private BigInteger docId;

    @Column(name = "IDENTIFIERDISPLAYNAME", nullable = false)
    private String identifierDisplayName;

    @Column(name = "DOCOTYPE", length = 255)
    private String docOType;


}